package com.example.liuke.guangguang.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.example.liuke.guangguang.R;

public class GifActivity extends AppCompatActivity {
    private ImageView imageView;
//file:///android_asset/dhgif146.gif
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_gif);
        imageView = (ImageView) findViewById(R.id.imageView);
        Glide.with(this).load("file:///android_asset/烟火效果竖版.gif").asGif().diskCacheStrategy(DiskCacheStrategy.NONE).into(imageView);
    }
}
